<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ include file="/common/base.jsp"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html lang="zh-cn">
<head>
<base href="<%=basePath%>">

<title>参合缴费登记</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport"
	content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta name="renderer" content="webkit">
<link rel="stylesheet" href="css/styles.css">
<link rel="stylesheet" href="css/admin.css">
<script src="js/jquery-1.4.4.min.js"></script>
<script src="js/admin.js"></script>
</head>
<body>
	<form method="post" action="" id="listform">
		<div class="panel admin-panel">
			<div class="panel-head">
				<strong class="icon-reorder">参合缴费登记</strong>
			</div>
			<div class="padding border-bottom">
				<ul class="search" style="padding-left:10px;">
					<li>搜索：</li>
					<li><input type="text" placeholder="请输入搜索关键字" name="familyholdername"
						class="input"
						style="width:250px; line-height:17px;display:inline-block" /> <a
						href="javascript:void(0)" class="button border-main icon-search"
						onclick="changesearch();"> 搜索</a></li>
				</ul>
			</div>
			<table class="table table-hover text-center">
				<tr>	<!-- <th width="50">序号</th> -->
					<th width="50" style="text-align:center;">&nbsp;</th>
					<th>户主姓名</th>
					<th>参合证号</th>
					<th>与户主关系</th>
					<th>身份证号</th>
					<th>性别</th>
					<th>操作</th>
				</tr>
				
				<%List<Money> flist=(List)request.getAttribute("model");%> 
				<%
					if(flist != null){
				
				%>
					
				<!-- 遍历循环后台传来的数据 -->
            	<c:forEach items="${model}" var="model">
				<tr>
				<%-- <%
						int list = flist.size();
						for(int i=0;i<list;i++){				
					%>
				<td><%=(i+1) %></td> --%>
				    
					<td><input type="checkbox" name="ids"
						value="${model.familycode}" /></td>
					<%-- <td align="center">${model.familyholdername}</td> --%>
					<td>${model.name}</td>
					<td>${model.cmscode}</td>
					<td>${model.relative}</td>
					<td>${model.idcard}</td>
					<td>${model.sex}</td>
					<td><div class="button-group">
							<a class="button border-main"
								href="<%=path%>/system/MoneyServlet?m=get&id=${model.familycode}"><span
								class="icon-user-md"></span> 家庭缴费</a> 
						</div></td>
				</tr>
				<%-- <% } %>  --%>
				</c:forEach>
					<% } %>
			</table>
		</div>
	</form>
<script type="text/javascript">
function changesearch(){
	var url = '<%=path%>/system/MoneyServlet?m=find';
	// 替换form表单需要提交的url
	$('#listform').attr('action',url);
	// 提交form表单
	$('#listform').submit();
}
</script>
</body>
</html>
